package demo2;

public class card {
    private int rank;
    private String suit;

    public card(int rank, String suit) {
        this.rank = rank;
        this.suit = suit;
    }

    @Override
    public String toString() {
        return "{"+rank+suit+"}";
    }
}
